package com.sky.mapper;

import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import com.sky.entity.ShoppingCart;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {
    @Select("select *from shopping_cart where user_id=#{openid}")
    List<ShoppingCart> findByUserId(String openid);

    void insert(Orders orders);

    void insertDetail(OrderDetail orderDetail);
}
